package com.ztgf.sms.mapper.sms;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ztgf.sms.models.dto.email.EmailInfoDTO;
import com.ztgf.sms.models.vo.EmailVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-05-23 17:35
 * Description:
 */
@Mapper
public interface EmailInfoMapper extends BaseMapper<EmailInfoDTO> {

    /*
     * @description:查询全部用户邮箱号
     * @author: chenyu.wang
     * @date: 2020-08-24
     */
    List<EmailVO> queryAllUserEmail();

    /*
     * @description:查询全部店铺邮箱号
     * @author: chenyu.wang
     * @date: 2020-08-24
     */
    List<EmailVO> queryAllShopEmail();

    /*
     * @description:查询各类型的店铺邮箱号,店铺类型 0专营店、1专卖店、2旗舰店、3自营店
     * @author: chenyu.wang
     * @date: 2020-08-24
     */
    List<EmailVO> queryOtherTypeShopEmail(@Param("type") Integer type);

    /*
     * @description:查询所有买家店铺邮箱号
     * @author: chenyu.wang
     * @date: 2020-08-24
     */
    List<EmailVO> queryAllBuyerEmail();

    /*
     * @description:查询筛选的用户邮箱号
     * @author: chenyu.wang
     * @date: 2020-08-24
     */
    List<EmailVO> queryAutoUserEmail(@Param("ids") String ids);


}
